package com.atguigu.servicebase.exceptionhandler;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author He Wentao
 * @since 2022/8/23 17:46
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Api(tags = "自定义异常类")
public class CustomizeException extends RuntimeException {

    @ApiModelProperty(value = "状态码")
    private Integer code; //状态码

    private String msg;//异常信息
}
